package com.my.service;
import com.my.service.ICallback;

interface IMyService {
	/*common*/
	int lockKey();
	int unlockKey();
	
	int setSource(in int index, in int source);
	int readSource();
	
	int setCamera(in int index, in int source);
	int readCamera();
	
	void setAppForeground(in int index);
	void setAppBackground(in int index);
	
	void reportPlayStatus(in int index, in int status);
	
	int requestBrakeCarStatus();

	void commonRegisterCallback(in ICallback cb);
	void commonUnregisterCallback(in ICallback cb);
	
	/*bt*/
	void btRegisterCallback(in ICallback cb);
	void btUnregisterCallback(in ICallback cb);
	void btReportStatus(in int status);
	void btMusicOn();
	void btMusicOff();
	void btPhoneOn();
	void btPhoneOff();
	
	/*background*/
	void setBackgroundL(int index);
	void setBackgroundR(int index);
	
	/*in*/
	String getServiceStr(in int index, in int param);
	int getServiceInt(in int index, in int param);
	int setServiceStr(in int index, in int key, String param);
	int setServiceInt(in int index, in int key, in int param);	
	
}
